package com.project.service;

import com.project.entity.MagFacultyInfo;
import com.project.entity.User;
import com.project.myBeans.MagfacultyInfoDetail;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 14:07
 * @param:
 * @return:
 */
public interface MagFacultyInfoService {
    /**
     * author: WheelChen
     * date: 2017/6/23
     * function: 根据userId查找行政人员信息表
     *
     * @param userId
     * @return
     */
    MagFacultyInfo findByUserId(Integer userId);

    /**
     * author: WheelChen
     * date: 2017/6/23
     * function:新增行政人员信息
     *
     * @param magFacultyInfo
     * @return
     */
    int add(MagFacultyInfo magFacultyInfo);

    /**
     * author: WheelChen
     * date: 2017/6/23
     * function: 修改行政人员信息
     *
     * @param magFacultyInfo
     * @return
     */
    int modifyByUserId(MagFacultyInfo magFacultyInfo);

    /**
     * author: WheelChen
     * date: 2017/6/24
     * function:根据id修改行政人员信息
     *
     * @param magFacultyInfo
     * @return
     */
    int modifyById(MagFacultyInfo magFacultyInfo);

    /**
     * author: WheelChen
     * date: 2017/7/13
     * function: 添加学院管理员
     *
     * @param user 用户
     * @param magFacultyInfo 行政
     * @return
     */
    int addManageAccount(User user, MagFacultyInfo magFacultyInfo) throws Exception;

    /**
     * author: WheelChen
     * date: 2017/8/9
     * function:
     *
     * @param userId
     * @return
     */
    int removeOneByUserId(Integer userId);

    /**
     * author: WheelChen
     * date: 2017/8/9
     * function: 根据用户表、行政人员信息表条件筛选
     *
     * @param magfacultyInfoDetail
     * @return
     */
    List<MagfacultyInfoDetail> findBatchByCondition(MagfacultyInfoDetail magfacultyInfoDetail);

}
